package com.sunchangpeng.wechat.core.exception;

public class WechatServerException extends RuntimeException {
    private WechatError error;

    public WechatServerException(String message) {
        super(message);
    }

    public WechatServerException(WechatError error) {
        super(error.getJson());
        this.error = error;
    }

    public WechatError getError() {
        return error;
    }
}
